import {createBrowserRouter} from "react-router-dom";

import App from "../App";
import Home from '../pages/home/Index'
import Index from '../pages/index/Index'

export const tworouter=[
    {
        path:'/home',
        element:<Home></Home>,
        title:'首页'
    },
    {
        path:'/index',
        element:<Index></Index>,
        title:'订单'
    }
]

 const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:tworouter
    }
] )

export default router;